/*
 * mutex.h
 *
 *  Created on: 22/05/2011
 *      Author: wadi
 */

#ifndef MUTEX_H_
#define MUTEX_H_

#include <pthread.h>

class ConditionVariable;
class Mutex {
public:
    Mutex();
    virtual ~Mutex();
    void lock();
    void unlock();
    friend class ConditionVariable;
private:
    pthread_mutex_t mutex;
};

#endif /* MUTEX_H_ */
